﻿@using SmartSiteManagementSystem.Models.Admin;
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@using (Html.BeginForm())
{
    <form id="form1" name="form1" action="Index">
        <div class="Main">
            <ul>
                <li class="top"></li>
                <li class="top2"></li>
                <li class="topA"></li>
                <li class="topB">
                    <span>
                        <img src="~/admin/Login/images/logo.jpg">
                    </span>
                </li>
                <li class="topC"></li>
                <li class="topD">
                    <ul class="login">
                        <li>
                            <span class="left">用户名：</span> <span style="left">
                           <input id="UserName" name="UserName" type="text" value="" />
                            </span>
                        </li>
                        <li>
                            <span class="left">密 码：</span> <span style="left">
                             <input id="UserPwd" name="UserPwd" type="password" />
                            </span>
                        </li>
                    </ul>
                </li>
                <li class="topE"></li>
                <li class="middle_A"></li>
                <li class="middle_B"></li>
                <li class="middle_C">
                    <span class="btn">
                       
                        <input type="submit" value="" style="background-image: url(../admin/login/images/btnlogin.gif);width:104px;height:35px;border:0;" />
                    </span>
                    <div style="white-space:normal;color:red"> @TempData["Message"]</div>
                </li>
                <li class="middle_D"></li>
                <li class="bottom_A"></li>
                <li class="bottom_B">

                </li>
            </ul>
        </div>
    </form>
}

@section  CSS{
<link rel="stylesheet" type="text/css" href="~/admin/Login/style/alogin.css?v=1.1.1" />
}
@section  Script{
    <script>
            //用于跳出框架展示登录页
            if (window.parent != window)
            {
                window.top.location.href = "/Login/Index";
            }
       

        function submit() {
            $("form").submit();
        }
    </script>
}

